import '../utils/api_utils/index.dart';

class LoginBaseApi extends BaseApi {
  LoginBaseApi() : super('/user/login', httpMethod: HttpMethod.post);

  set setParams(Map<String, dynamic> data) => {
        data.forEach((key, value) {
          params[key] = value;
        })
      };
}

class RoomApi extends BaseApi {
  RoomApi() : super('/app/api/room/list');
}

class StartLiveApi extends BaseApi {
  StartLiveApi() : super('/app/api/room/start', httpMethod: HttpMethod.post);

  set setId(int roomId) => params['id'] = '$roomId';
}
